package com.modules.service.generator;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.Result;
import com.modules.entity.generator.CodeGeneratorEntity;
import com.modules.entity.generator.GeneratorTableEntity;

/**
 * service代码生成器
 *
 * @author yyq
 */
public interface CodeGeneratorService extends IService<CodeGeneratorEntity>{

    /** 查询所有表*/
    Result<?> selectTablePage(Page<GeneratorTableEntity> page);

    /** 查询某个表字段*/
    Result<?> selectTableFieldPage(String name);

    /** 生成代码*/
    Result<?> createOneCode(String tableNames, String fieldNames, String tableComments);

    /** 生成代码-选择多表*/
    Result<?> createCodeTables(String tableNames, String tableComments);

    /** 生成代码-多表*/
    Result<?> createCodes(String tableNames, String tableComments);


}
